package com.nf.health.app.models;

import java.util.ArrayList;

public class DataDetails implements BaseModel{
	private static final long serialVersionUID = -5710729034369781838L;
	private String isSpecial;
	private String max;
	private String min;
	private String name;
	private String unit;
	private ArrayList<String> xValue;
	private ArrayList<String> yValue;
	private ArrayList<String> y_array;//y轴各标记位的值
	
	private String normal_max;
	private String normal_min;
	private String column_key;
	
	public String getNormal_max() {
		return normal_max;
	}
	public void setNormal_max(String normal_max) {
		this.normal_max = normal_max;
	}
	public String getNormal_min() {
		return normal_min;
	}
	public void setNormal_min(String normal_min) {
		this.normal_min = normal_min;
	}
	public String getColumn_key() {
		return column_key;
	}
	public void setColumn_key(String column_key) {
		this.column_key = column_key;
	}
	public String getIsSpecial() {
		return isSpecial;
	}
	public void setIsSpecial(String isSpecial) {
		this.isSpecial = isSpecial;
	}
	public String getMax() {
		return max;
	}
	public void setMax(String max) {
		this.max = max;
	}
	public String getMin() {
		return min;
	}
	public void setMin(String min) {
		this.min = min;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public ArrayList<String> getxValue() {
		return xValue;
	}
	public void setxValue(ArrayList<String> xValue) {
		this.xValue = xValue;
	}
	public ArrayList<String> getyValue() {
		return yValue;
	}
	public void setyValue(ArrayList<String> yValue) {
		this.yValue = yValue;
	}
	public ArrayList<String> getY_array() {
		return y_array;
	}
	public void setY_array(ArrayList<String> y_array) {
		this.y_array = y_array;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public ArrayList<Double> getyValueDou() {
		ArrayList<Double> tYValue = null;
		if(yValue != null){
			tYValue = new ArrayList<Double>();
			for(String item: yValue){
				double tMin =0;
				try{
					tMin = Double.parseDouble(item);
				}catch(Exception e){
					tMin = 0.0D;
					e.printStackTrace();
				}
				tYValue.add(tMin);
			}
		}
		
		return tYValue;
	}

	@Override
	public String toString() {
		return "DataDetails [isSpecial=" + isSpecial + ", max=" + max
				+ ", min=" + min + ", name=" + name + ", unit=" + unit
				+ ", xValue=" + xValue + ", yValue=" + yValue + ", y_array="
				+ y_array + "]";
	}
	@Override
	public void parse(String jsonString) {
		// TODO Auto-generated method stub
		
	}
	
	
}
